# Manage maemo networky things.
from log import log

def HaveConnection():
  """Returns true if we think we have a working network connection."""
  return True

def WaitForConnection():
  """Block, conserving battery power, until a network connection is
  available."""
  while not HaveConnection():
    log("Blocking util a network connection is established.")
    time.sleep(60)
